package cn.hwadee.muying.entity;


import cn.hwadee.muying.commons.base.BaseModel;
import com.baomidou.mybatisplus.annotations.TableField;

/**
 * <p>
 * 
 * </p>
 *
 * @author Tony
 * @since 2018-04-17
 */
public class Role extends BaseModel {

    private static final long serialVersionUID = 1L;
    /**
     * 机构id
     */
    @TableField("org_id")
    private Long orgId;
    /**
     * 角色编码
     */
    private String code;
    /**
     * 角色名称
     */
    private String name;
    /**
     * 角色备注
     */
    private String remark;
    /**
     * 权限id集合
     */
    private String perms;
    /**
     * 设备id集合
     */
    private String devices;


    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    public String getDevices() {
        return devices;
    }

    public void setDevices(String devices) {
        this.devices = devices;
    }


    @Override
    public String toString() {
        return "Role{" +
        ", id=" + id +
        ", orgId=" + orgId +
        ", code=" + code +
        ", name=" + name +
        ", remark=" + remark +
        ", perms=" + perms +
        ", devices=" + devices +
        ", valid=" + valid +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", deleteDate=" + deleteDate +
        "}";
    }
}
